<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('新增项目角色')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
	    <form class="form-horizontal m" id="form-role-add">
	        <div class="form-group">
	            <label class="col-sm-3 control-label">角色名称：</label>
	            <div class="col-sm-8">
	                <input type="text" name="name" class="form-control" placeholder="请输入角色名称" required/>
	            </div>
	        </div>
	        <div class="form-group">
	            <label class="col-sm-3 control-label">角色编码：</label>
	            <div class="col-sm-8">
	                <input type="text" name="code" class="form-control" placeholder="请输入角色编码" required/>
	            </div>
	        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态：</label>
            <div class="col-sm-8">
                <select name="status" class="form-control">
                    <option value="0">正常</option>
                    <option value="1">停用</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">排序号：</label>
            <div class="col-sm-8">
                <input type="number" name="sortOrder" class="form-control" placeholder="请输入排序号（数字越小越靠前）" value="0"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">排序号：</label>
            <div class="col-sm-8">
                <input type="number" name="sortOrder" class="form-control" placeholder="请输入排序号（数字越小越靠前）" value="0"/>
            </div>
        </div>
        <div class="form-group">
	            <label class="col-sm-3 control-label">备注：</label>
	            <div class="col-sm-8">
	                <textarea name="remark" class="form-control" rows="3" placeholder="请输入备注信息"></textarea>
	            </div>
	        </div>
	    </form>
	</div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "project/role";

        $(function() {
        });
        // 表单提交
		function submitHandler() {
		    if ($.validate.form()) {
		    	$.operate.save(prefix + "/add", $('#form-role-add').serialize());
		    }
		}
    </script>
</body>
</html>